package lookas.model;

import java.io.Serializable;

public class Person implements Serializable{
    private static final long serialVersionUID = -446804742790362173L;

    private String            firstName;
    private String            secondName;
    private String            pesel;

    public Person(String firstName, String secondName, String pesel){
        this.firstName = firstName;
        this.pesel = pesel;
        this.secondName = secondName;
    }

    public void setFirstName(String firstName){
        this.firstName = firstName;
    }

    public String getFirstName(){
        return firstName;
    }

    public void setSecondName(String secondName){
        this.secondName = secondName;
    }

    public String getSecondName(){
        return secondName;
    }

    public void setPesel(String pesel){
        this.pesel = pesel;
    }

    public String getPesel(){
        return pesel;
    }

    @Override
    public String toString(){
        return firstName + " " + secondName + ", " + pesel;
    }
}
